package com.web.bridge.service;

import java.util.List;

import org.hibernate.service.spi.ServiceException;

public interface IBaseService<T> {
	public T add(T t) throws ServiceException;

	public T update(T t) throws ServiceException;

	public void delete(T t) throws ServiceException;
	
	public void delete(Class<T> entityClazz,Long id) throws ServiceException;
	
	public T get(Class<T> entityClazz,Long id) throws ServiceException;
	
	public List<T> listAll(Class<T> entityClazz) throws ServiceException;
	
}
